package net.xiduth.game.player.dialogues.auto;

import net.xiduth.game.WorldTile;
import net.xiduth.game.player.content.Magic;
import net.xiduth.game.player.dialogues.Dialogue;

public class Tutorial extends Dialogue {

	@Override
	public void start() {
		stage = 1;
		if (stage == 1) {
			sendOptionsDialogue("Would you like to skip the tutorials?",
					"Yes please.",
					"No thanks.");
			stage = 1;
	}
	}

	public void run(int interfaceId, int componentId) {
		if (stage == 1) {
			if (componentId == OPTION_1) {
			player.getInventory().addItem(6099, 1);
			player.getInventory().addItem(11814, 1);
			player.getInventory().addItem(995, 5000);
			player.setDoneCombatTutorial();
			player.falseCombatTutorial();
			player.falseSkillsTutorial();
			player.setDoneSkillsTutorial();
			player.getControlerManager().removeControlerWithoutCheck();
			Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3682,
					2973, 0));
			player.lock();
					player.getInterfaceManager().sendWelcome();
				 player.getInterfaceManager().closeChatBoxInterface();
				 player.unlock();
			}
			if (componentId == OPTION_2) {
				player.getInterfaceManager().sendWelcome();
				player.getInterfaceManager().closeChatBoxInterface();
			player.getDialogueManager().startDialogue("SimplePlayerMessage", "Where am I?");
		}
		}
	}

	@Override
	public void finish() {

	}

}